package com.isljj.web_chat2.mapper;

import com.isljj.web_chat2.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    //插入操作-->注册
    Integer insertUser(User user);
    //查询操作-->登录成功
    User selectByName(String userName);

    User selectByUserId(Integer userId);

//    模糊搜索
    List<User> selectByName2(String userName,Integer userId);
}
